﻿@model blacksoft.Models.Persona

@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_LayoutCompras.cshtml";
}

@{
    if (TempData["MODCOMP_failure_create_ruc"] != null)
    {
        <div class="error grid_12">
            <h3>@TempData["MODCOMP_failure_create_ruc"].</h3>
            <a class="hide_btn" href="#"></a>
        </div>
    }
    if (TempData["MODCOMP_failure_proveed_create_failure_empty"] != null)
    {
        <div class="error grid_12">
            <h3>@TempData["MODCOMP_failure_proveed_create_failure_empty"].</h3>
            <a class="hide_btn" href="#"></a>
        </div>
    }
}

<div class="block big">
    <div class="titlebar">
        <h3>Nuevo Proveedor</h3>
    </div>


    <div class="block_cont">
        @using (@Ajax.BeginForm("showInfoProveedor", new AjaxOptions
            {
                HttpMethod = "GET",
                UpdateTargetId = "divProveedor",
                InsertionMode = InsertionMode.Replace
            }))
        {
            <div class="form">
                <div class="form-row">
                    @Html.Label("RUC")
                    <input type="text" class="text-box single-line" name="ruc" />
                </div>
                <br />
                <div class="form-group">
                    <input type="submit" class="btn btn-default" value="Buscar" />
                </div>
                
                
            </div>
        }
        <div id="divProveedor">
        </div>
        <br />
        @Html.ActionLink("Regresar al listado", "Index")
    </div>
</div>
